<!--[if IE 7]>
<!DOCTYPE>
<html lang="en">
	<head>
<![endif]-->
<!--[if IE 8]>
<!DOCTYPE>
<html lang="en">
    <head>
           <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<![endif]-->
<![if gte IE 9]>
<!DOCTYPE HTML>
<html lang="en">
	<head>
<![endif]>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Chart 2D</title>
		<style type="text/css">
			@import "../../../dojo/resources/dojo.css";
			@import "../../../dijit/tests/css/dijitTests.css";
		</style>
		<!-- required for Tooltip: a default dijit theme: -->
		<link rel="stylesheet" href="../../../dijit/themes/tundra/tundra.css">
		<style>
			.dojoxLegendNode {border: 1px solid #ccc; margin: 5px 10px 5px 10px; padding: 3px}
			.dojoxLegendText {vertical-align: text-top; padding-right: 10px}
		</style>
		<script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug: true, async: true, parseOnLoad: true"></script>

		<script type="text/javascript">
			var seriesB = [2.6, 1.8, 2, 1, 1.4, 0.7, 2];
			require([
			"dojox/charting/widget/Chart",
			"dojox/charting/axis2d/Default",
			"dojox/charting/plot2d/Areas",
			"dojox/charting/plot2d/Grid",
			"dojox/charting/plot2d/Pie",
			"dojox/charting/action2d/Tooltip",
			"dojox/charting/action2d/MoveSlice",
			"dojox/charting/action2d/MouseZoomAndPan",
			"dojox/charting/widget/Legend",
			"dojox/charting/themes/PlotKit/orange",
			"dojox/charting/themes/PlotKit/blue",
			"dojox/charting/themes/PlotKit/green",
			"dojox/data/HtmlStore", "dojo/parser"]);
		</script>
	</head>
	<body class="tundra">
		<h1>Chart 2D</h1>
		<p>Examples of charts using widgets.</p>
		<div data-dojo-type="dojox.data.HtmlStore" dataId="tableExample" data-dojo-id="tableStore"></div>
		<table id="tableExample" style="display: none;">
			<thead>
				<tr><th>value</th></tr>
			</thead>
			<tbody>
				<tr><td>6.3</td></tr>
				<tr><td>1.8</td></tr>
				<tr><td>3  </td></tr>
				<tr><td>0.5</td></tr>
				<tr><td>4.4</td></tr>
				<tr><td>2.7</td></tr>
				<tr><td>2  </td></tr>
			</tbody>
		</table>
		<table border="0" cellspacing="30">
			<tr>
				<td>
					<div data-dojo-type="dojox.charting.widget.Chart" id="chart1" style="width: 300px; height: 300px;">
						<div class="axis" name="x" font="italic normal normal 8pt Tahoma"></div>
						<div class="axis" name="y" vertical="true" fixUpper="major" includeZero="true" 
							font="italic normal normal 8pt Tahoma"></div>
						<div class="plot" name="default" type="Areas"></div>
						<div class="plot" name="grid" type="Grid"></div>
						<div class="series" name="Run A" data="1, 2, 0.5, 1.5, 1, 2.8, 0.4"></div>
						<div class="series" name="Run B" array="seriesB" legend="&lt;em&gt;Custom&lt;/em&gt; legend"></div>
						<div class="series" name="Run C" store="tableStore" valueFn="Number(x)"></div>
						<div class="action" type="MouseZoomAndPan" maxScale="40"></div>
					</div>
					<div data-dojo-type="dojox.charting.widget.Legend" chartRef="chart1"></div>
				</td>
				<td>
					<div data-dojo-type="dojox.charting.widget.Chart" id="chart2" theme="dojox.charting.themes.PlotKit.orange" 
							fill="'lightgrey'" style="width: 300px; height: 300px;">
						<div class="axis" name="x" font="italic normal bold 10pt Tahoma" minorLabels="false" labelSizeChange="true"></div>
						<div class="axis" name="y" vertical="true" fixUpper="major" includeZero="true"
							font="italic normal bold 10pt Tahoma"></div>
						<div class="plot" name="default" type="Areas"></div>
						<div class="plot" name="grid" type="Grid"></div>
						<div class="series" name="Series A" data="1, 2, 0.5, 1.5, 1, 2.8, 0.4"></div>
						<div class="series" name="Series B" array="seriesB"></div>
						<div class="series" name="Series C" store="tableStore" valueFn="Number(x)" stroke="'#666666'" fill="'#b3b3b3'"></div>
						<div class="action" type="MouseZoomAndPan" axis="x" scaleFactor="1.05"></div>
						<div class="action" type="MouseZoomAndPan" axis="y" scaleFactor="1.05"></div>					
					</div>
					<div data-dojo-type="dojox.charting.widget.Legend" chartRef="chart2"></div>
				</td>
			</tr>
			<tr>
				<td>
					<div data-dojo-type="dojox.charting.widget.Chart" id="chart3" theme="dojox.charting.themes.PlotKit.blue"
							 style="width: 300px; height: 300px;">
						<div class="plot" name="default" type="Pie" radius="100" fontColor="white"></div>
						<div class="series" name="Series B" array="seriesB"></div>
						<div class="action" type="Tooltip"></div>
					</div>
				</td>
				<td>
					<div data-dojo-type="dojox.charting.widget.Chart" id="chart4" theme="dojox.charting.themes.PlotKit.green"
							 style="width: 300px; height: 300px;">
						<div class="plot" name="default" type="Pie" radius="100" fontColor="black" labelOffset="-20"></div>
						<div class="series" name="Series C" store="tableStore" valueFn="Number(x)"></div>
						<div class="action" type="Tooltip"></div>
						<div class="action" type="MoveSlice" shift="2"></div>
					</div>
				</td>
			</tr>
		</table>
		<p>That's all Folks!</p>
	</body>
</html>
